package com.byedu.domain.focus.vo.enumvos;

public enum FocusDepartmentTypeEnum {
    HumanResource(1, "人事部"),
    Finance(2, "财务部"),
    Medical(3, "医学部"),
    Online(4, "线上运营部"),
    ArtificialIntelligence(5, "IT部"),
    DESIGN(6, "设计部"),
    CLIENT(7, "客户经理"),
    Scheme(8, "策划部"),
    Meeting(9, "会务执行"),
    Other(9, "其他");



    private int code;
    private String value;
    //自定义的构造函数，参数数量，名字随便自己取
    //构造器默认也只能是private, 从而保证构造函数只能在内部使用
    private FocusDepartmentTypeEnum(int code, String value)
    {
        this.code = code;
        this.value = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getValue()
    {
        return value;
    }

    public void setValue(String value)
    {
        this.value = value;
    }
    //重新toString方法，默认的toString方法返回的就是枚举变量的名字，和name()方法返回值一样
    @Override
    public String toString()
    {
        return this.code+":"+this.value;
    }
}
